using System.Collections.Generic;
using Iesi.Collections.Generic;
using SharpArch.Core.DomainModel;

namespace NHibernateInsight.Tests.Domain
{
    public class Product : EntityWithTypedId<int>
    {
        public virtual string Name { get; set; }

        public virtual IList<Prospect> Prospects
        {
            get
            {
                return _prospects ?? (_prospects = new List<Prospect>());
            }
            set
            {
                _prospects = value;
            }
        }
        private IList<Prospect> _prospects;

        public virtual ISet<Prospect> ProspectsSet
        {
            get
            {
                return _prospectsSet ?? (_prospectsSet = new HashedSet<Prospect>());
            }
            set
            {
                _prospectsSet = value;
            }
        }
        private ISet<Prospect> _prospectsSet;
    }
}